<?php
namespace app\api\validate;

use think\Validate;

class Group extends Validate
{

    /**
     * 验证规则
     */
    protected $rule = [
        'name'                  => 'require',
        'rules'                 => 'require|array',
    ];

    /**
     * 提示消息
     */
    protected $message = [
        'name.require'              => '姓名不能为空',
        'rules.require'             => '权限不能为空',
        'rules.array'               => '权限数据格式不正确',
    ];

    /**
     * 字段描述
     */
    protected $field = [

    ];

    /**
     * 验证场景
     */
    protected $scene = [
        'edit' => ['name','rules'],
    ];

}
